package com.zhanjixun.springcloud.userweb.service;

import com.zhanjixun.springcloud.userweb.conf.FeignConfiguration;
import com.zhanjixun.springcloud.userweb.query.UserQuery;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author :zhanjixun
 * @date : 2019/8/25 16:11
 */
@FeignClient(value = "spring-cloud-user-service", configuration = FeignConfiguration.class)
public interface UserService {

    @PostMapping("/user/add")
    boolean add(@RequestBody UserQuery userQuery);

    @GetMapping("/user/login")
    UserQuery queryUserByAccountAndPassword(@RequestBody UserQuery userQuery);
}
